FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 9188
# FROM microsoft/dotnet:2.2-sdk AS build
# WORKDIR /src
# COPY ["Ruibei.Api/Ruibei.Api.csproj", "Ruibei.Api/"]
# RUN dotnet restore "Ruibei.Api/Ruibei.Api.csproj"
# COPY . .
# WORKDIR "/src/Ruibei.Api"
# RUN dotnet build "Ruibei.Api.csproj" -c Release -o /app

# FROM build AS publish
# RUN dotnet publish "Ruibei.Api.csproj" -c Release -o /app

FROM base AS final
WORKDIR /app
COPY ./bin/docker /app
# COPY --from=publish /app .
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENTRYPOINT ["dotnet", "Vav.Api.dll"]